package io.zw.modules.xinpai.controller;

import java.util.Arrays;
import java.util.Map;

import io.zw.common.validator.ValidatorUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import io.zw.modules.xinpai.entity.MapDataEntity;
import io.zw.modules.xinpai.service.MapDataService;
import io.zw.common.utils.PageUtils;
import io.zw.common.utils.R;



/**
 * 
 *
 * @author zhuwei
 * @email 121203654@qq.com
 * @date 2018-10-29 11:46:28
 */
@RestController
@RequestMapping("xinpai/mapdata")
public class MapDataController {
    @Autowired
    private MapDataService mapDataService;


    /**
     * 信息
     */
    @RequestMapping("/info/{id}")
    @RequiresPermissions("xinpai:mapdata:info")
    public R info(@PathVariable("id") Long id){
        MapDataEntity mapData = mapDataService.selectById(id);
        return R.ok().put("mapData", mapData);
    }

}
